package ex.com.jm.food.service.impl;

import java.util.List;

import ex.com.jm.food.dao.AdminAdsDao;
import ex.com.jm.food.entity.Ads;
import ex.com.jm.food.service.AdminAdsService;

public class AdminAdsServiceImpl implements AdminAdsService {

	private AdminAdsDao adminAdsDao;
	public AdminAdsDao getAdminAdsDao() {
		return adminAdsDao;
	}

	public void setAdminAdsDao(AdminAdsDao adminAdsDao) {
		this.adminAdsDao = adminAdsDao;
	}

	@Override
	public List<Ads> getAds(final int initPage,final int pageRow, String adName, final String s_date,
			final String e_date,final Integer type,final Integer status,final String sort,
			final String order) {
		// TODO Auto-generated method stub
		
		return this.getAdminAdsDao().getAds(initPage, pageRow,adName, s_date, e_date, type, status, sort, order);
	}

	@Override
	public int adsCount( String adName,String s_date, String e_date, Integer type,
			Integer status) {
		// TODO Auto-generated method stub
		return this.getAdminAdsDao().adsCount(adName,s_date, e_date, type, status);
	}

	@Override
	public boolean updateStatus(Integer status, String id) {
		// TODO Auto-generated method stub
		return this.getAdminAdsDao().updateStatus(status, id);
	}

	@Override
	public Ads editAds(String id) {
		// TODO Auto-generated method stub
		return this.getAdminAdsDao().editAds(id);
	}


}
